#include <mockcpp/mockcpp.hpp>
#include <testngpp/testngpp.hpp>
#include <Square.h>

USING_MOCKCPP_NS
USING_TESTNGPP_NS

FIXTURE(Square)
{
    TEST(The area should be 5.81 when input side is 2.417 )
    {
      Square square(2.417);
      ASSERT_EQ(5.81, square.getArea());
    }

    TEST(The perimeter should be 9.64 when input side is 2.417)
    {
      Square square(2.417);
      ASSERT_EQ(9.64, square.getPerimeter());
    }
    
    TEST(The area should be 5.81 when change the side as 123.697 )
    {
      Square square(2.417);
      square.setSide(123.697);
      ASSERT_EQ(5.81, square.getArea());
    }    

    TEST(The perimeter should be 9.64 when change the side as 123.697 )
    {
      Square square(2.417);
      square.setSide(123.697);
      ASSERT_EQ(9.64, square.getPerimeter());
    }    

};

